<?php
    $startingYear = 2010;
    $endingYear = intval(date('Y'));
    $years[0] = '---';
    for($i = 0; $startingYear <= $endingYear - $i; $i++)
    {
        $years[$i + 1] = strval($endingYear - $i);
    }
?>